﻿@model NewRen.Models.Town
@using NewRen.Models
@{
    ViewBag.Title = "镇管理";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    Town town = ViewBag.Town as Town;
}


<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>基础管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="/Admin/Home/Index">后台管理</a>
            </li>
            <li>
                <a>基础管理</a>
            </li>
            <li>
                <a href="/Admin/Foundation/TownEdit">修改镇</a>
            </li>
        </ol>
    </div>
</div>

<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>镇修改 <small><a href="/Admin/Foundation/Town">镇管理</a></small></h5>
                </div>
                <div class="ibox-content">
                    @using (Html.BeginForm("AddTown", "Foundation", FormMethod.Post, new { id = "frmAddDistrict", @class = "form-horizontal" }))
                    {
                        @Html.AntiForgeryToken()
                        <div class="form-group">
                            <label class="col-sm-2 control-label">城市</label>
                            <div class="col-sm-10">
                                @Html.DropDownList("slCity", ViewBag.CityList as List<SelectListItem>, new { @class = "form-control", @id = "slCity", @style = "width:200px;" })
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">区县</label>
                            <div class="col-sm-10">
                                @Html.DropDownListFor(model => model.DistrictID, ViewBag.DistrictList as List<SelectListItem>, new { @class = "form-control", @style = "width:200px;" })
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">镇名称</label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.TownName, new { @class = "form-control", @Value = town.TownName })
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="reset">重置</button>
                            </div>
                            <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
